Updated boundaries to improve collision detection at corners