math update

converts reference frames better now from ball squares to pixels