Edited checkChromosomeIsEmpty into class pointer return type

Check if this will be better, because when we call it, it return the address, we can directly add things into the class.