Code:
		if (result == "Congratulations! Your guess was correct.") {
		    String end = "Game over. You guessed correctly.";
		    
		    out.writeUTF(end);
		    out.flush();
		    
		    client.close();
		    server.close();
		    break;
		}
		
		else if (mnumb.getFinished()) {
		    String end = "Game over. You exceeded maximum number of guesses.";
		    
		    out.writeUTF(end);
		    out.flush();
		    
		    client.close();
		    server.close();
		    break;
		}
		else {
		    out.writeUTF(result);
		    out.flush();
		}
the 2 first if statements perfrom the same action, except the string message is different.. im sure i can cut duplicating code out?