Removed non existant variable a from createPolygons-function