Trying to implement Pacman in python, failing ensues.