Added game boilerplate. Rewritten in js.