Fixed bugs and logic of previous commit

Made changes to both tic tac toe games.