void drawRects(int step){ SDL_RenderClear(renderer); int cols = matrix[1]; int rows = matrix[0]; int colWidth = ((600-5)/cols)-5; int rowHeight = ((300-5)/rows)-5; for(int i=0; i