notebook for randomization and two scripts for pygame events