I know it is really hard to explain how the ghosts work. For Level 5, you need to understand that the order of movement is from the oldest ghost to the most recent ghost, and then the player. This means a ghost can move in one direction and then the player can push it in another direction.