A Text-based Game Solution