pacman is eating dots, some refactoring still todo