public Case getCaseByDirection(int direction, Case position){
		switch(direction){
			case 0:
			{
				if(position.getCaseNumber()-16 > 0){
					return this.casefield[position.getCaseNumber()-16];
				}
				
				return null;
			}
			case 1: 
			{
				if(position.getCaseNumber()%16 != 0){
					return this.casefield[position.getCaseNumber()-1];
				}
				
				return null;
			}
			case 2:
			{
				if(position.getCaseNumber()%16 != 15){
					return this.casefield[position.getCaseNumber()+1];
				}
			}
			case 3:
			{
				if(position.getCaseNumber()+16 < 256){
					return this.casefield[position.getCaseNumber()+16];
				}
				
				return null;
			}
			default:
				return null;
		}
	}