ruby kata, Tic Tac Toe refactoring