Enemy can determine when he stands on a corner and switch his moving direction, so he does not fall down. May produce strange behaviour, if the enemy spawns direct on the corner sprite.