Stopping a Sprite Walking Past Platform Edges