fixed bug in createPolygon function

createPolygon() used the deprecated b2PolyDef class