wow....
have you ever created a game before?
no offence, but this code is so unorganised that it wouldn't suprise me if the game itself looses track of what should happen.
i cant see anything that might cause this to happen, but i really recomment you to simplefy your code. if you are intrested, i am willing to help you out to give a bit more understanding of how to build a more organised code which will run smoothly.