made changes to the canMoveDirection functions