public static char[][] shift_square(char[][] square,int start,int shift_pos,boolean row)
	{
		int total_row=square.length;
		int total_col=square[0].length;
		char[][] result=new char[total_row][total_col];
		for(int i=0;i<5;i++)
		{
			for(int j=0;j<5;j++)
			{
				result[i][j]=square[i][j];
			}
		}
		if(row)
		{
			int end=(start+shift_pos)%5;
			for(int i=0;i<5;i++)
			{
				char temp=result[start][i];
				result[start][i]=result[end][i];
				result[end][i]=temp;
				
			}
		}
		else
		{
			int end=(start+shift_pos)%5;
			for(int i=0;i<5;i++)
			{
				char temp=result[i][start];
				result[i][start]=result[i][end];
				result[i][end]=temp;
				
			}
		}
		return result;
	}