Loop through the four ghosts/pellets instead of repeating code