Optimize FSMPacMan, only flees from ghosts when they are near