added detection of goal post using histogram