Reworked performed_moves with raise