game working on 3x3 grid