Simulation finally working (bad matrix multiplication!!!!)