Instead of posting the whole code and asking debug try saying what is the issue.