creating timer and changing gameSquare logic