@Override
    public void doLoopAction() {
        if (stageObject.isFall() && !goingUp) {
            goingUp = false;
            upTeller = 0;
            while (stageObject.checkCollisionMap(stageObject.getX(), stageObject.getY() + fallsize) != Collision.NONE && fallsize != 0) {
                fallsize--;
            }
            stageObject.setY(stageObject.getY() + fallsize);
        } else {
            fallsize = 5;
            goingUp = true;
            if (upTeller == 20) {
                goingUp = false;
            }
            stageObject.setY(stageObject.getY() - upsize);
            upTeller++;
        }

        switch (direction) {
            case LEFT:
                stageObject.setX(stageObject.getX() - WALKSPEED);
                break;
            case RIGHT:
                stageObject.setX(stageObject.getX() + WALKSPEED);
                break;
            case NONE:

                break;
        }

    }