$(document).ready(function() {

  var match = new Match()
  match.popGames()

  $('.choice').click(function() {
      userChoice = $(this).attr('id')
      match.playGame(userChoice)
      match.checkGameWinner()
      match.checkMatchWinner()
      match.popGames()
    })
})

@@ -267,11 +267,664 @@
 %0A    %7D)%0A
+%0A%0A  $(%22.content%22).on(%22click%22, '#new_game_button', function(event)%7B%0A     event.preventDefault()%0A     var $target = $(event.target)%0A     $.ajax(%7B%0A       url: $target.attr('action'),%0A       type: 'POST',%0A     %7D).always(function()%7B%0A       match.resetMatch()%0A       match.popGames()%0A     %7D).done(function(response)%7B%0A       $('.content').empty().append(response)%0A       $('.choice').click(function() %7B%0A          userChoice = $(this).attr('id')%0A          match.playGame(userChoice)%0A          match.checkGameWinner()%0A          match.checkMatchWinner()%0A          match.popGames()%0A        %7D)%0A     %7D).fail(function()%7B%0A       console.log('failed')%0A     %7D)%0A%0A   %7D)%0A%0A%0A
 %7D)%0A

add ajax for try again button, needs refactor