Changed to use a single curses window for the main window, saves ~1.5MB of memory