@Override
		public void actionPerformed(ActionEvent e) {
			if(e.getSource() == text) {
				input = text.getText();
				if (input.contains("/") || input.contains("\\")) {
					// Slashes in the input would indicate that the user inputted a fraction
					if (Math.abs(answer - TypeManager.convertFractiontoDecimal(input)) <= MathGame.epsilon) {
						// The epsilon value is needed to account for the imprecision in storing decimal values (when using floats or doubles)
						isCorrect = true;
						finish();
					} else {
						incorrect.setVisible(true);
						pack();
					}
				} else if(Math.abs(answer - Double.parseDouble(input)) <= MathGame.epsilon) {
					isCorrect = true;
					finish();
				} else { 
					incorrect.setVisible(true);
					pack();
				}
			} else if (e.getSource() == cancel) {
				isCorrect = false;
				finish();
			}
		}