Practice implementing a stack to traverse a maze