Added Curses support, board now toidial, reads form stdin.