while loop that checks to see if the values that are stored in the variables for the first triangle are empty