Play Tic-Tac-Toe in Ruby using Curses(full-screen-commandline app)