public boolean hasReachedEnd(Traffic traffic){
		if(traffic.yStartingPos == 3 || traffic.yStartingPos == 1){
			if(trafficRectangle.x > FrogsterConstants.JPANEL_SIZE){
				return true;
			}else{
				return false;
			}
		}else{
			if(trafficRectangle.x + trafficRectangle.width < 0){
				return true;
			}else{
				return false;
			}
		}
	}