         rnd = @rnd(0, (@board.nbHorizontalTiles * @board.nbVerticalTiles) - 1)
         break if not @around(rnd, x, y)
       @data[rnd] = @entities.Mine
+
+
+  showTile: (x, y) ->
+    @board.cases[@positionFromCoord(x, y)].showTile()
 
 
   coordFromPosition: (position) ->


    if nbMinesAround is 0
      for [x, y] in game.neighborCoord @x, @y
        game.board.cases[game.positionFromCoord(x, y)].showTile()


  countMines: () ->

    return if game.state is States.GameOver
    if @countFlags() is @countMines()
      for [x, y] in game.neighborCoord @x, @y
        game.showTile x, y


class @Game
