fixed bug where rect  class could not recognize stairs, but aabb could