Added tests and some changes to tic_tac_toe