restored infinite grid (no wraparound)
fixed timing and printing of line breaks to prevent jumpiness when game exits with return value