detect pacman position