Potential bugs fix, code and comments improvement

Added "nbFlags" variable is Board class (It's needed to count how many
flags there are in the board)