refactor to use gameoptions global obj

Use this obj to save the grid size
refactor: move grid management code to own class
refactor: rearrange init code to be more obvious
refactor the bottom detection
refactor to use object for game state enum (instead of string)
refactor the run finding code to be much clearer
refactor: slightly reorg the init method for the game
remove unneeded js from the index page
add logo to the home page