Draw the direction line to the middle of the target (and make the target a bit bigger).
Don't position targets too close to the edge of the building.
Refactor event loop into a function.