This is a sample piece of code from my python map project we did. Instead of going for a direction-based type game, I locked the direction you were travelling in and isntead focused more on storytelling elements