Remo box from user messages and also create a new method to get

the user input. This new method will be used inside client module.
Use get_user_inpu in client

Also move end_window to the same condition of init window.