adds consturctors for Player and Game classes; namespaces js