edited code to take in vertices in an array to be used
to make shapes, adding element and vector bufferss