I suggest you fix the problems that have already been pointed out, eliminate the code that is not involved in demonstrating the problem, confirm that your updated code does still demonstrate the problem and then post the code here.
I suggest you fix the problems that have already been pointed out, eliminate the code that is not involved in demonstrating the problem, confirm that your updated code does still demonstrate the problem and then post the code here.