@Override
	public void move(int x, int y) {
		try{
			if((bitMap.Map[(body.x)][(body.y)+1].Resident==null)&&bitMap.Map[(body.x)+x][(body.y)+y].medium==1)	
			{
			int colorhold = body.color;
			body.color=(6340095-body.y);
			body.Resident= null;
			body= bitMap.Map[body.x+x][body.y+y];
			body.Resident = this;
			body.color = colorhold;
			ready = 0;}
			else{
				if(bitMap.Map[(body.x)+x][(body.y)+y].medium==0)
			 kill();
				else{
				
					body.color= (6340095-body.y);
				    
				    			body.Resident = null;
				            body.medium = 1;//})
				
			}}}
			catch(ArrayIndexOutOfBoundsException e ){
				//not sure
			}
		
		
		
	}