public void moveOnY(int yMoveSize) {
        
        int casePositionXleft = 0, casePositionXright = 0, casePositionY = 0;
        int caseSize = GameVue.getCaseSize();
        
        switch(yMoveSize) {
            case -10 :
                casePositionXleft = (player.getxPosition() / caseSize);
                casePositionXright = (player.getxPosition() + caseSize - 1) / caseSize;
                casePositionY = (player.getyPosition() + yMoveSize) / caseSize;
                
                if(map.isFree(casePositionXleft, casePositionY) && map.isFree(casePositionXright, casePositionY) && (player.getyPosition() + yMoveSize) >= 0) {
                    player.moveOnY(yMoveSize);
                }
                
                break;
                
            case 10 :
                casePositionXleft = (player.getxPosition() / caseSize);
                casePositionXright = (player.getxPosition() + caseSize - 1) / caseSize;
                casePositionY = (player.getyPosition() + caseSize + yMoveSize - 1) / caseSize;
                
                if(map.isFree(casePositionXleft, casePositionY) && map.isFree(casePositionXright, casePositionY)) {
                    player.moveOnY(yMoveSize);
                }
               
                break;
        }        
        
    }