moved invalidating Polygon.js
changes to updateMotion() to reduce calls
use new invalidate method
added isZero
updated to match new Math.isZero()