Put grid, gui, and ifstream into struct to pass around.