divisible by 3 problem fixed with else if statement