Added sum of adjacent squares to ranking system