Cleaned up code some more

Moved all of the code that loads the sudoku grids into a vector into a
function for itself to simplify the main function.
Main function is more readable now.