Getting stuck in Timer1 interrupt loop

Not posting the new code, does not allow any comments on that.