I have n x n size grid and m objects (position of each is not set), I need to fill the grid(calculate positions) with my objects starting from the center of the grid (x0=n/2