Made it so the last direction the player faced is stored.