I decided to change the plan a little bit by starting the gui work this week instead of next mostly since I discovered that it was not easy to leave and start a new game. So in order to debug easier I created a simple gui which I then just continued to work on. Right now I have a main menu where the player input their name which makes the play button appear. There is also an options and a help button but these are not implemented yet. At the bottom I put a link to the blog. I have also made an in-game menu from which the player can leave the game and return to the main menu. The options and help buttons will also be implemented in this menu. And after some work it is now possible to join a game, play a bit and then leave, without reloading the page or anything crashing. This process is perfectly in line with the goal of being able to start a match immediately and play for the duration you want, instead of waiting to find other players.
I think I will finish the menus tomorrow or Friday morning and will then start work on smarter AI’s.