Fixed the bugs in the goal post finder