J.P. Morgan Interview Question

Coding problem: write a program letting player go through the dungeon