Are you using an integer so that you can use the if (a==b), if you are you set all three shapes to 0 so that all your if statements will check for 0 == shape... second, if you want to compare...