I\'m using the following code to determine when to move to the next line when adding text to the screen:
if avail_space < font.size(word)[0]: at_line +