Mine field must be generating after first click.
The first clicked cell must be not just safe, but always equal 0.
i actually didn't know that! i'll keep that in mind for next time ^^
yeah i clicked on a bomb first turn