Implemented tile loading system and fixed minor issues:
Implemented a check when reducing the size of the lines in drawToVec.
Corrected function calls in main.
Fixed most warnings.