Javascript course design - 2048 games