Implementation of random moves in PacmanAgent