I've done my best to explain what the problem is, if there's part of my explanation that you don't understand please let me know and I'll try to explain in more detail.
If you've changed the code and it's still not working, please post the new code so we can see what you've tried.