tic tac toc problem resolved using tdd