Your code has many flaws: It is messy and full of comments for a start. That alone makes it hard for you to see ...
stackoverflow.com