A multiagent system that simulates Minesweeper