Dice: made the code more modular and extracted main table from full html