Refactored floor checks for corridors and stairs