[Demonstration 1]

[Buggy Method]
private void testInput() {
    if (Gdx.input.justTouched()) {
        int x = Gdx.input.getX();
        int y = Gdx.input.getY();
        Vector3 inputs = new Vector3(x, y, 0);
        renderer.getCamera().unproject(inputs);
        //Log the postion x and y when touch.
        //            Gdx.app.log(TAG,"touch x = "+inputs.x+"  ||  "+"touch y = "+inputs.y);
        if (inputs.x <= 640 / 2) {
            //                Gdx.app.error(TAG,"touch left side");
        } else {
            //                Gdx.app.error(TAG,"touch right side");
            world.playerAttack();
        }
    }
}

[Buggy Hunk]
else{

[Patch]
if (inputs.x>=640/2&&inputs.y>=136){

[Demonstration 2]

[Buggy Method]
public static void latLngToTileBoundedXy(Coordinate coordinate, int z, int x, int y) {
    Pixel pixel = latLngToPixel(coordinate, z);
    coordinate.x = pixel.x - x * TILE_SIZE;
    coordinate.y = (pixel.y - y * TILE_SIZE) - y;
}

[Buggy Hunk]
coordinate.y = (pixel.y - y * TILE_SIZE) - y;

[Patch]
coordinate.y = TILE_SIZE - (pixel.y - y * TILE_SIZE);

[Demonstration 3]

[Buggy Method]
public void addPrototypeMap() {
    JsonArray mapArray = JsonArray.create();
    int index = 1;
    for (int i = 0; i < 3; i++) {
        JsonObject map = JsonObject.create();
        mapArray.add(map.put("id", i).put("width", 200 * i).put("height", 300 * i));
        System.out.println(Config.MAP1_SNAIL.length);
        JsonArray monsters = JsonArray.create();
        for (int j = 0; j < Config.MAP1_SNAIL.length - 2; j += 2) {
            monsters.add(JsonObject.create().put("id", 1).put("index", index++).put("x", Config.MAP1_SNAIL[j]).put("y", Config.MAP1_SNAIL[j + 1]));
        }
        map.put("monsters", monsters);
    }
    JsonObject maps = JsonObject.create().put("normalMaps", mapArray);
    couchbase.set("Prototype_Maps", maps);
}

[Buggy Hunk]
for (int j = 0; j < Config.MAP1_SNAIL.length - 2; j += 2) {

[Patch]
for (int j = 0; j < Config.MAP1_SNAIL.length; j += 2) {