Add message handler between game and the server
Message handler spec
Fix game spec
small refactoring