This was exactly what the problem was. Thank you all so much for all the help. Happy this resolved my issue. Included a couple photos so people can see the issue.
This image shows the z axis cable (top cable) wired white, red green, black. The rest of the connections are wired red, white, green, black.
Took the two pins out of the connector
Used a knife to bend the tabs back up so they would stay in place when re-inserted into the connector.
Switched the two wires and put them back in the connector.
The obligatory hello world program finally executed successfully.