@Override
    public void update() {
        InputHandler input = world.getGame().getInput();

        int speed = 8;

        //        if (input.hasMouseMoved() && input.isMouseIn()) {
        //            setX(input.getMouseX());
        //        } else {
        if (input.left.isDown()) { move(-speed, 0); }
        if (input.right.isDown()) { move(speed, 0); }
        //        //        }

        if (getX() <= 0) {
            setX(0);
        }

        if (getX() >= Game.WIDTH - WIDTH) {
            setX(Game.WIDTH - WIDTH);
        }

        BonusManager bm = world.getGame().getBonusManager();
        if (bm.isInactive(BonusType.PlatformExtension)) {
            bm.activate(BonusType.PlatformExtension);
            setWidth((int) (getWidth() * 1.5));
        } else if (bm.isJustRemoved(BonusType.PlatformExtension)) {
            setWidth(WIDTH);
        }

        if (bm.isInactive(BonusType.PlatformShrink)) {
            bm.activate(BonusType.PlatformShrink);
            setWidth((int) (getWidth() / 1.5));
        } else if (bm.isJustRemoved(BonusType.PlatformShrink)) {
            setWidth(WIDTH);
        }

        glowPosition = 0;
    }