protected void makeMove(int type,int stepX,int stepY){
		switch(type){

		// Swiping on x with going stepY up or down each time we end on a border
		case 0:
			if (x+stepX>(width-1)||x+stepX<0) y = (height+y+stepY)%(height);
			x = (width+x+stepX)%(width);

			break;

		case 1:

			// Swiping on y
			if (y+stepY>(height-1)||y+stepY<0) x = (width+x+stepX)%(width);
			y = (height+y+stepY)%(height);

			break;

		case 2:
			// going from right to left
			if ((x-1)<0){
				x = height-1;
				if ((y+1)>this.height-1) y = 0;

				else y++;
			}
			else x++;
			break;



		}
	}