When a marching monstar (aka. goomba) arrives at the end of a platform, sometimes it will change direction and walk back, other times it will walk off the edge and fall.
What determines which happens, and how can I tell beforehand? Is a property of the monstar, or the platform?