code fix
added tests, game system, prepared framework