Fixed unused value with good_values by fixing size of good_count
Made rect into a generic class
Started to write automated testing