Ensure centipede changes direction when hitting a mushroom