Added tiebreaking and automatic textarea resize