added global constants for directions + changed name to moveInDirection