added a textual interface for debugging game logic