I'm trying to make a minesweeper program, but with gophers instead, and I'm struggling to get it to work. It was working before I added the reveal function, and selecting a gopher would make you lose. Now, losing seems to be completely random, and the reveal function that's supposed to show the number of gophers around you just returns random letters and symbols, most often "Q." Can anyone analyze my code and maybe help me figure out where I went wrong? Thanks!