Reduce Array Size Python Code For Tic Tac