Fix problem with eating apples immediately after a turn.
More robust way to prevent 180-degree turns.