added curly brackets at the if and else statements

line 13 , line 15 , line 16 , line 18, line 19, line 21