factored out square update code; improved selection; disabled text selection on board