Added Repository interfaces, game instance factory, model improving