Movement fixes

The problem was that I accidentally was not consistent with the X and Y
coordinates. For future reference: the X coordinate is horizontal (x=0
and x=1 are left and right to each other) and the Y coordinate is
vertical (y=0 and y=1 are up and down from each other)