Tidied up the code and made the stylesheet and the game script their own different files.

Of course, I also linked the files to the HTML.