what the heck? the height and width are read from an external file, and if I change the width and height in the file to 59 and 44, it loops forever as well.