refactor vertexOutcode to computerOutcode