add detection of bad moves