refactor game library and add create game operation, progress on #27