basic hallway code; needs functionalisation of room actions