improving dronewar and profiling code for peformance