fixed bug where revealed squares could be flagged