Hello.
Using a pencil and a paper, if you would have traced your program you might have noticed the big fault in your system.
Before reading my post further I suggest you trace it and try to...