You should avoid the lava and find the gold
If you hit a wall, move in a different direction