Added the function checkNumberOfBombs