some functionallity has been reomoved from the main() function in client.c and putted into the askRoom() function.