Fixed spanX and spanZ calc

Put x1 and z1 in instead of x2 and z2
Now eggs move around better.
Merge pull request #1 from cindyker/master

Fixed spanX and spanZ calc