Prototype functional/closure based game state management with a text based bitmap generator