private void match() {
		if(firstClicked.returnImage() == secondClicked.returnImage()) {
			// The current player gets a higher score.
			players.addScore(numOfTurns);
			// Checks if the current player has succeeded in pairing cards
			// in a number of turns to be able to tell the player how many points
			// he/she is receiving. To not get spammed with messages, we have 
			// put the minimum to two.
			if (numOfTurns > 2) {
				alotOfTurnsMatched();
			}
			// Disables the cards to make the unclickable.
			firstClicked.cardMatched();
			secondClicked.cardMatched();
			// Sets the variable to null to be able to click on new cards.
			firstClicked = null;
			secondClicked = null;
			// Number of turns is added with one.
			numOfTurns++;
			// Number of cards left to match is changed.
			amount -= 2;
			// Checks if all the cards are matched.
			// If true, the players/player is informed.
			if (amount == 0) {
				if (players.company()){
					winning();
				} else {
					onePlayerWin();
				}
			}
		} else if(firstClicked != secondClicked){
			// The current player loses a point.
			players.subScore();
			// The current player is changed.
			// (If there are two players playing)
			// If they are changed, true is returned
			// and the users are notified.
			boolean changed = players.changePlayer();
			// Checks if the players were changed 
			// (if only one player, the players aren't changed)
			// The players are informed if the player was changed.
			if(changed) {
				playersChangedInfo();
			}
			// Flips the cards back.
			firstClicked.unFlip();
			secondClicked.unFlip();
			// Sets the variables to null.
			firstClicked = null;
			secondClicked = null;
			// Number of turns is reset to one.
			numOfTurns = 1;
		}
	}