public void update(int x, int y) {
        currentX = (x <= maxMapMovementToLeft) ? maxMapMovementToLeft : x;
        if (x <= maxMapMovementToLeft) {
            currentX = maxMapMovementToLeft;
        } else if (x >= maxMapMovementToRight) {
            currentX = maxMapMovementToRight;
        } else {
            currentX = x;
        }
        currentY = y; //currentY == player.getYOnMap()
    }