Pacman game implemented in Erlang