integrating js player/team model into game engine