book now removes invalid moves when cleaning