public void actionPerformed(ActionEvent event)
			{	
				if (state == GameState.IN_PROGRESS) //only test guess if game hasn't ended yet
				{
					if (attempts[attempted].isCompleteGuess()) //make sure all pegs are selected
					{
						attempts[attempted].setEditable(false);
						testGuess();
					}
					else
					{
						showIncompleteError();
					}
				}
				else if (state == GameState.WON)
				{
					showWonMessage();
				}
				else // state == lost
				{
					showLostMessage();
				}
			}