added basic code to find out base points of goalposts