Combined if statements because I was getting to print outs that were correct but the same.