created a JsonGame clas for sharing data between the rails and ui gems