public void addMatch()
	{
		Players players = new Players();
		
		Scanner scan = new Scanner(System.in);
		Player resultPlayer = null;
		
		while (resultPlayer == null)
		{
			System.out.println("Wybierz pierwszego gracza:");
			firstPlayer =  scan.nextInt();
			try {
				resultPlayer = players.getPlayer(firstPlayer);
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
		firstPlayerObj = resultPlayer;
		resultPlayer = null;
		
		while (resultPlayer == null)
		{
			System.out.println("Wybierz drugiego gracza:");
			secondPlayer =  scan.nextInt();
			try {
				resultPlayer = players.getPlayer(secondPlayer);
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
		secondPlayerObj = resultPlayer;
		
		firstScore = 0;
		secondScore = 0;
		
		String firstPL = firstPlayerObj.name + " " + firstPlayerObj.lastname;
		String secondPL = secondPlayerObj.name + " " + secondPlayerObj.lastname;
		
		while (firstScore < 2 && secondScore <2)
		{
			int firstChoice = generateChoice();
			int secondChoice = generateChoice();
			
			System.out.println("W tym losowaniu wylosowano:");
			System.out.println(firstPL + ": " + choiceDict.get(firstChoice));
			System.out.println(secondPL + ": " + choiceDict.get(secondChoice));
			
			if ((Integer) beatsList.get(firstChoice) == secondChoice)
			{
				firstScore++;
				System.out.println("Wygrywa: " + firstPL);
			}
			else if ((Integer) beatsList.get(secondChoice) == firstChoice)
			{
				secondScore++;
				System.out.println("Wygrywa: " + secondPL);
			}
			else
			{
				System.out.println("Remis.");
			}
			System.out.println();
			System.out.println();
		}
		
		int firstPoints = firstPlayerObj.points;
		int secondPoints = secondPlayerObj.points;
		int winner = 0;
		
		if (firstScore == 2)
		{
			winner = firstPlayerObj.id;
			firstPoints += winPoints;
			secondPoints += loosePoints;
			System.out.println("Cały mecz wygrywa: " + firstPL);
		}
		else
		{
			winner = secondPlayerObj.id;
			firstPoints += loosePoints;
			secondPoints += winPoints;
			System.out.println("Cały mecz wygrywa: " + secondPL);
		}
		
		addMatchToDB(firstPlayerObj.id, secondPlayerObj.id, firstScore, secondScore, winner);
		addPoints(firstPlayerObj.id, firstPoints);
		addPoints(secondPlayerObj.id, secondPoints);
		updateMatchCount(firstPlayerObj.id, firstPlayerObj.matches + 1);
		updateMatchCount(secondPlayerObj.id, secondPlayerObj.matches + 1);
	}