Added direction enums and some methods to store movement related code.