@RequestMapping(method = RequestMethod.POST)
	public void saveScores(@RequestBody ScoreEntry scoreEntry) {
		// check request
		if (scoreEntry == null) {
			throw new RuntimeException("Score entry is null");
		}
		if (scoreEntry.getGame() == null) {
			throw new RuntimeException("Game entry is null");
		}
		if (scoreEntry.getUser() == null) {
			throw new RuntimeException("User entry is null");
		}
		if (scoreEntry.getGame().equals("")) {
			throw new RuntimeException("Game entry is empty");
		}
		if (scoreEntry.getUser().equals("")) {
			throw new RuntimeException("User entry is empty");
		}
		if (scoreEntry.getScore() <= 0) {
			throw new RuntimeException("Score entry is less or equal zero");
		}
		// System.out.println(scoreEntry.getScore());
		if (gamesDAO.getGameByGameName(scoreEntry.getGame()) == null) {
			gamesDAO.insertGame(scoreEntry.getGame());
		}
		if (usersDAO.getUserByUsername(scoreEntry.getUser()) == null) {
			usersDAO.insertUser(scoreEntry.getUser());
		}
		if ((scoresDAO.checkScore(scoreEntry.getGame(), scoreEntry.getUser(),
				scoreEntry.getScore()) == null)) {
			scoresDAO.insertScore(scoreEntry.getGame(), scoreEntry.getUser(),
					scoreEntry.getScore());
		}
	}