performance update to checkFloor() function in Building class