prototype cls and prompt in game.cpp
Fix a spelling error.
Add base64 encoding and decoding.