Turn key on, turn off valet switch.
The alarm goes off did the removed engine does not work for the key has different rolling code the motor for its own dme engine computer and you are no go and you insert the engine does.
Take it back to the people who put the engine in have them tow it and pay the bill. Don’t get yourself all worked up over this its not your problem.