add raise exception in move sequence if invalid move