modified score calculator, still only works for 1x1 grid