integrates previous game logic with jquery/bootstrap