added server-side gamecore with some tests.