Add room space finding function