Optimisation of Grid code number 2 (GameActivity)