public void serverReceiveMessages() {
		String input;
		String inPart1;
		String inPart2;
		try {
			input = inClient.readLine();
			
			if(input != null) {
				String pattern = "^([A-Z]+:)([a-zA-Z0-9:\\s]*)$";
				Pattern p = Pattern.compile(pattern);
				Matcher m = p.matcher(input);
//the communication from the client is very limited. They can only send
//moves, quits, reset requests(and responses) and new game requests(and responses)
				if(m.find()) {
					inPart1 = m.group(1);
					inPart2 = m.group(2);
					if(inPart1.equals(communication.cMove)) {
						handleMove(inPart2);
					} else if(inPart1.equals(communication.cQuit)) {
						handleQuit();
					} else if(inPart1.equals(communication.cReset)) {
						handleReset(inPart2);
					} else if(inPart1.equals(communication.cNew)) {
						handleNewgame(inPart2);
					}
				}
			}
			
		} catch (InterruptedIOException tiemout) {
			
		} catch(IOException outp) {
			System.out.println("Can not receive");
		}
		
	}