public void playGame(Agent player1, Agent player2)
	{
		GameAction p1move, p2move;
		GameAction[] history = new GameAction[roundsPerGame*2];

		player1.matchScore = 0;
		player2.matchScore = 0;

		for(int i = 0; i < roundsPerGame; i++)
		{
			p1move = player1.getNextMove(i, history, false);
			p2move = player2.getNextMove(i, history, true);

			history[2*i] = p1move;
			history[2*i+1] = p2move;
			

			if(p1move == GameAction.COOPERATE && p2move == GameAction.COOPERATE)
			{
				//System.out.println("Both cooperated");
				player1.giveScore(mutualCooperationScore);
				player2.giveScore(mutualCooperationScore);
			}
			else if(p1move == GameAction.COOPERATE && p2move == GameAction.DEFECT)
			{
				player1.giveScore(loseScore);
				player2.giveScore(winScore);
			}
			else if(p1move == GameAction.DEFECT && p2move == GameAction.COOPERATE)
			{
				player1.giveScore(winScore);
				player2.giveScore(loseScore);
			}
			else if(p1move == GameAction.DEFECT && p2move == GameAction.DEFECT)
			{
				player1.giveScore(mutualDefectionScore);
				player2.giveScore(mutualDefectionScore);
			}
		}
	}