Implement the NFA using JavaScript. Create a function called `thompsonsConstruction` that takes a regular expression as input and returns the corresponding NFA.
This HTML file sets up a basic game structure using a canvas element and a script tag. It defines the `thompsonsConstruction` function to generate an NFA from a regular expression entered by the user. The game is started by calling the `runGame` function when the page is loaded.