fixed vertical and horizontal slowdown

from previously only checking if no buttons were pressed it now
considers if no horizontal buttons are pressed or no vertical movement
buttons are pressed