If at the begging of your turn your penguin is close to a wall or is stuck in a door, you may place it on the closest free point on the red line (so the center of the penguin is on the line).