implement 3*3 grid game