Inject document into game
Remove global references from game
Enable or disable debug based on process.env
Sort rules alphabetically
Elaborate build and preview scripts
Update readme
Add test for hittest
Refactor hittest