and with a quick glance across to the lighthouse i realized that the little thing that was catching my eye just happened to be in direct line of the lighthouse , both in line with its shadow , and with one of the windows that its powerful lamps shone through .