rewrite pacman move partly