im developing a game that need player to draw a shape around target object.. im stuck on how to check if the line draw is a closed shape or not.. can someone help me?