I now have a working game, that is, you are able to win or lose. https://porkostomus.gitlab.io/posts-output/2018-10-23-minesweeper/