fixed bug where patrolling enemy got crazy on the platforms corners