Prisoner's dilemma frontend Rails application