Cleaned some code from the Main class and moved it to the Mechanics class.
Removed unused imports.