Cleaned GeneralMath.*. Refactored a lot of other classes in preparation for the actual game.