Adding 2D grid trajectory