Changed sound volume calculation and fixed polygon's getCenter() method