optimized targeting code for towers

optimized targeting code slightly. its now ~40% faster (tested in a room
with 50 towers and 50 enemies that never get in range of the towers)