private void checkCollisionBar(OperateShape ball, OperateShape bar) {
		boolean isBallXBarRange = ball.getX() >= bar.getX() - bar.getWidthFromCenter()
				&& ball.getX() <= bar.getX() + bar.getWidthFromCenter();
		boolean isBallYBarRange = ball.getY() >= bar.getY() - bar.getHeightFromCenter()
				&& ball.getY() <= bar.getY() + bar.getHeightFromCenter();
		boolean isBallBarRangeLeft = ball.getX() < (((bar.getWidthFromCenter() * 2) / 3)
				+ (bar.getX() - bar.getWidthFromCenter()));
		boolean isBallBarRangeCenter = ball.getX() >= (((bar.getWidthFromCenter() * 2) / 3)
				+ (bar.getX() - bar.getWidthFromCenter()));
		boolean isBallBarRangeRight = ball.getX() >= ((((bar.getWidthFromCenter() * 2) / 3) * 2)
				+ (bar.getX() - bar.getWidthFromCenter()));
		
		if (isBallXBarRange && isBallYBarRange) {
			if (isBallBarRangeLeft) {
				EdgeType edgeType = EdgeType.LEFTSIDEOFTHEBAR;
				event.setEdgeType(edgeType);
				isCollision = true;
			} else if (isBallBarRangeCenter && !isBallBarRangeRight) {
				EdgeType edgeType = EdgeType.MIDDLEOFTHEBAR;
				event.setEdgeType(edgeType);
				isCollision = true;
			} else if (isBallBarRangeRight) {
				EdgeType edgeType = EdgeType.RIGHTSIDEOFTHEBAR;
				event.setEdgeType(edgeType);
				isCollision = true;
			}
		}
	}