public static String getHeaderStatus(Result result, String white, String black,
			String currentPlayer, String opponentUsername) throws Exception {
		switch (result.getStatus()) {
		case DRAW: {
			return "Game Drawn with " + opponentUsername + "<br/> Reason - "
					+ result.getInfoString();
		}
		case PROGRESS: {
			throw new Exception("Unexpected error happened");
		}
		default: {
			return "You "
					+ ((result.getStatus() == Status.WHITE_WINS ? white : black)
							.equals(currentPlayer) ? "Won" : "Lost")
					+ " Against " + opponentUsername + "<br/> Reason - "
					+ result.getInfoString();
		}

		}
	}