Working program. Attempt to generate multiple sentences that have an end point but currently generating too many sentences with endpoints