added grid calculation based off minepositions