Dye fixes

1. Fixes #334
2. Move doc to game_api.txt