public void shoot(int dist, Point shooterPosition) {
	
				
		int d5 = 42 + (5 * 5 * currentTime.getH() + 5 * currentTime.getM() +
				currentTime.getS()) % 42;
		
		int d7 = 42 + (7 * 7 * currentTime.getH() + 7 * currentTime.getM() +
				currentTime.getS()) % 42;
		
			
		int id = 0;
		
		if (dist < d5)
			id = 5;
		
		if (dist >= d5 && (dist - d5) < d7 )
			id = 7;		
			
		if (dist - d5 - d7 >= 0 )
			id = 8;
		
		
		if (id == 5) {
			
			shooterPosition.trans((int)Math.round(Math.sin(dist * Math.PI / 2)), 0);
			
			shapeChangingDist = -dist / 10 - 5;
			
			
			shape = new Square();
			
		}
		
		if (id == 7) {
			
			shooterPosition.trans((int)Math.round(Math.sin(d5 * Math.PI / 2)), 0);
			shooterPosition.trans((int)Math.round(Math.sin((dist-d5) * Math.PI / 2)),
					(int)Math.round(Math.cos((dist-d5) * Math.PI / 2)));
			
			shapeChangingDist = -d5 / 10 - 5 + (-(dist - d5) / 10 - 7) ;
			
			shape = new Rectangle();
		}
		
		if (id == 8) {
			
			shooterPosition.trans((int)Math.round(Math.sin(d5 * Math.PI / 2)), 0);
			shooterPosition.trans((int)Math.round(Math.sin(d7 * Math.PI / 2)),
					(int)Math.round(Math.cos(d7 * Math.PI / 2)));
			
			shapeChangingDist = -d5 / 10 - 5 + (-d7 / 10 - 7);
			
			shape = new Dot();		
			
		}		
	}