public void cambiarCasilla(Casilla casilla, int type){
    	if(type != 7 && type != 5 && type != 6)
    		porcentajeObstaculos = (float) (porcentajeObstaculos + (100.0 / ((float) size_tablero_F * (float) size_tablero_C)));
    	
    	if( (type == 7  || type == 5 || type == 6) && casilla.get_type() != 7 && casilla.get_type() != 5 && casilla.get_type() != 6)
    		porcentajeObstaculos = (float) (porcentajeObstaculos - (100.0 / ((float) size_tablero_F * (float) size_tablero_C)));
    	
    	casilla.set_type(type, WIDTH/size_tablero_F,HEIGHT/size_tablero_C);
    }