Added cell posn checks. Corrected dynamics.