Pacman AI Implementation in Java