More general fixes

IDEA: Temporarily include allegro or some windows library so that we can make a popup window appear. Use this popup to show which buses are being powered when. This can be used to find exactly why my more efficient code is not working.
- Deleted that HORRIBLE sorting algorithm
- Formatting