sets the initial user variables upon connection, refactored the code in
getting rooms by storing it first to a room array for readability
fixed getting iterators from maps