Complexity of path-forming games