Refactored player vertexes function, added references