@Override
    public void update(GameObject object) {

        int dir = new Random().nextInt(4);

        if(dir == 0) {
            object.y -= 2;
        }
        if(dir == 1) {
            object.y += 2;
        }
        if(dir == 2) {
            object.x -= 2;
        }
        if(dir == 3) {
            object.x += 2;
        }
    }