public void run(){
			boolean gameFound = false;
			boolean searching = true;
			while(!gameFound && searching){
				try {
					jlblMessage.setText("Searching for a game.");
					int gameID = gameCon.getGameinformation(user);
					if(gameID != -1){
						gameFound = true;
						jlblMessage.setText("Game found");
						jbttnJoinGameQueues.setEnabled(false);
						jbttnLeaveGameQueues.setEnabled(false);
						new PlayFrame(gameID, user);
					}else{
						try {
							sleep(333);
							jlblMessage.setText("Searching for a game..");
							sleep(333);
							jlblMessage.setText("Searching for a game...");
							sleep(333);
						} catch (InterruptedException e) {
							searching = false;
							jlblMessage.setText("");
						} catch (Exception e) {
							searching = false;
							jlblMessage.setText("");
						}
					}
				} catch (ClassNotFoundException e){
					searching = false;
					jlblMessage.setText("Internal Error: Class not found");
				} catch (SocketTimeoutException e) {
					searching = false;
					jlblMessage.setText("Connection timed out");
				} catch (UnknownHostException e) {
					searching = false;
					jlblMessage.setText("Server not found");
				} catch (IOException e) {
					searching = false;
					jlblMessage.setText("Internal Error: IO");
				}
			}
		}