A multiagent system to play Minesweeper