Updated changeCellState method to affect number of flags left to choose.