Create simulator.java

Added statistics, still need to optimize a little bit for speed.