Tic Tac Toe Code #2. Refined code and removed repetitive if statements.