generate grids, prepare turn, selected element