call perform_moves! if sequence is valid