Why did you start another thread? You can edit your post, too.
As for me I refined my code a bit. It should be easier now:

http://nopaste.info/e527f05456.html

Back to your code:
You really have to ask more precisely where exactly your problem
lies / which code fragment doesn't work as you expect.

Much like the friendly admin in the other topic wrote: Its not like writing
"help" and you get a full working code including documentation .)
I merely wrote the game by myself because I felt bored.

And for gods sake indent your code. My eyes hurt from guessing what
belongs to what (this distracts me from finding your mistakes ).
Btw.: I guess nobody is going to EMail or IM you. A Forum is meant to
share wisdom; its not some market where you can buy your personal
debugger.