start working on html/js version of gameC