Refactored the AJAX request for storing the round result
Refactored the updated of the credit
Refactored the method to update the bet
Refactored the method to roll the dice
Refactored some variable names, other minor improvements
Refactored the database interactions
Fixed and re-enabled the progress check using $_SESSION
Minor HTML refactoring