implemented polygon drawing