Testing collapse
Add testing functionality for most functions
Test functions for random input generation
Format input
Fix bug for multiple moves