drawing a polygon/triangle on screen