if statements partially working, indentation off for beginning of if statement