Create 1.py

The first one, I added some prints quick debugging/ explenation of each of the processes during runtime, also added a thresh variable to check smaller cases and fix bugs if any pops up.