Atomic Collision
We are conducting a collision experiment with m atoms placed on an n×n grid.
Each of the m atoms has a mass, direction, speed, and initial position. The direction is given as up, down, left, right, or diagonal. The initial position x,y indicates which row and column the atom is in, respectively, and is a natural number between 1 and n.