Draw Pac Man on the grid before returning the grid so that a position change take effect before Pac Man moves forward.