@Override
    public void tick(LinkedList<GameObject> object) {
        if (direction == 0) {
            x -= speed;
        }
        if (direction == 1) {
            x += speed;
        }
        if (x > px + Game.WIDTH / 2 || x < px - Game.WIDTH / 2) {
            handler.object.remove(this);
        }
        Collision();
    }