Debugged my if statements