Initial structure and pacman searching