Optimisation of Grid code number 1 (GameActivity)