added a while loop to the new tile function to stop generating random tiles once count variable is greater than 16