Added a function in life.cpp which opens a file and extracts the number of rows and columns the mao has based on its contents.