curses-based chess game