updated code to pass latest test, all tests related to counting mines now passes