modularize poly and util. Change goal so that it uses polygon intersection
to determine if the goal has been hit.