added a function which takes care to recognize left and right goalposts based on if there is a vertical post, it also recognizes if the robot see the root of the post or not