Final Competition Code

Completed PHASE 4 and PHASE 5
Cleaned up and organized code a little
Fixed PHASE 3