Before refactoring JS game model
Created methods in game model to convert between server model and js model