grid distance calculations working for balls. TODO: play with weights.