Part 1 logic complete

Functional script for Event 1 Part 1.