Towards natural language understanding in text-based games