Fixing some bugs. Now the game finishes right. Still loocking for other bugs.