Partially added checking for horizontal movement.
Needs work.