Make inBounds() inclusive of boundaries