Code for a rogue-like text-based RPG