modified the way toGridBox works
added getminimumdisplacement and collisions metatable
added final comprobation for collisions that just start happening without tunnelling