Close Polygon Funtion

Finished :hand: