refactor: use getGame function