x values are for horizontal movement, y values for vertical movement. Change the code to change the y values, not the x values.