A simple minesweeper implementation in javascript