Pacman C# implementation