Code pacman made in console.