added if and else if statement

added if and else if statement also changed the name of variable
firstChecked to checkAnswer