But it is significantly faster then your original brute-force approach.A 2D grid is also relatively easy and straight forward to implement.A few more remarks; unless you build in some sort of system to deal with this then you can not have Towers outside of the grid (i.e. offscreen).