Multi-Agent Based Modelling: from Social Simulation to Real Time Strategy Games