refactor out tic-tac-toe logic to it's own file, and allow multiple games