How to cast to the location of a separate Actor on an input event?

Can you show how you add the widget and actually draw the lines? At a glance it looks like the array is not being cleared or too many widgets are added.