Else if-Condition

added the else if statement  creating a third option for the machine