changed the way platforms are added so they are sorted on draw