Removing getPreviousDirection from Pacman