public void gameEnd(boolean won)
	{
		State outcome;
		if (won)
			outcome = new WinState(true);
		else
			outcome = new LossState(true);
		if (oldPlayState != -1)
			playStates[oldPlayState].updateReward(outcome, oldPlayAction);
		if (oldDrawState != -1)
			drawStates[oldDrawState].updateReward(outcome, oldDrawAction);
		oldPlayState = -1;
		oldDrawState = -1;
		oldPlayAction = -1;
		oldDrawAction = -1;
	}