moved pacman to a class