Added goalpost detection + distance to it.
This version is pretty much final (maybe some minor tweaking somewhere)
#issue 22314