Game in JS for AP CS class