public int moveByString(String direction){
		int moved = 0;
		direction.toLowerCase();
		
		switch(direction.charAt(0)){
	    	case 'u': moved=this.up();
	    			  break;
	    	case 'd': moved=this.down();
	    			  break;
	    	case 'l': moved=this.left();
	    			  break;
	    	case 'r': moved=this.right();
	    	          break;
		}
		return moved;
	}