Fixed a bug with moving down, refactored the function