refactor game route