working on curses with jrank