created separate method for linear search while reading in the file.
neither linear search works, both return NullPointerExceptions