How do i find the centre of a polygon and then rotate it?