private void answerEquation(){
		//Attempt solution 
		int answer;
		//Parse answerString as an integer
		try{
			answer = Integer.parseInt(answerString);
		}catch(NumberFormatException nfe){
			System.out.println("Please enter valid value.");
			answer = 0;
			return;
		}

		//If targeting yourself, make the power 0.
		int submitPower = currentTarget == getAttachedEntity() ? 0 : getAttachedEntity().getPower();

		System.out.println("Submit power: " + submitPower);

		//Get targets battle state
		TargetableState targetState = (TargetableState)currentTarget.getState();

		//send answer to current target
		if(targetState.submitAnswer(new Equation(answer), submitPower)){

			System.out.println("Correct");
			
			// change player's stance
			attachedTo.getSprite().queueAnimation(1, true);
			hasAttacked = true;

			//Add the operators from solved equation to the player
			numAddOp += targetState.getEquation().getAdditionOperators();
			numSubOp += targetState.getEquation().getSubtractionOperators();
			numMultOp += targetState.getEquation().getMultiplicationOperators();
			numDivOp += targetState.getEquation().getDivisionOperators();

			//Increment profile stats
			Directory.profile.incrementEquationsSolved();

			//Check if the Entity was killed
			if(currentTarget.getCurrentHealth() <= 0){
				//Toggle target
				toggleTarget();
			}
			else{
				targetState.generateNewEquation();

			}
		}
		else{
			System.out.println("Wrong");

			//Increment profile stats
			Directory.profile.incrementWrongAnswers();

			//Clear the answer string
			answerString = "";
		}
	}