added code for determining which room a client is in