The problem has been solved by Zyrion. The problem is with the way you are trying to evaluate the if statements a==b or b==a. As Zyrion said use a==1 or b==2 to solve the problem.