An AI for Minesweeper