A rework of the betting game done in HTML5