Dungeon exploration game bug: no output

1)Format all the code
2)Wow, your code is really big,
3)(Its stupid to say but) print works on console, but you cant see what is printed on the canvas
4) It seems that all ok, can you make a download file for the images so I can run this code?