Fixed if conditions...
don't understand the scanf bug... T_T