Fixed small bugs. Main.py was stuck opening and closing curses forever.