block illegal moves