It feels strange having this all in GitDefence.draw(). Maybe you could check this flag here, but it feels like the actual code should be somewhere in quadtree.