Refactor ttt.rb into lib for use in command line game, rename ttt.rb at root to web_interface.rb