Fixed bad_move check