Do not set cols and rows as attributes

Instead use the grid object as a 2d array with a lenght.
Size grid according to the terminal size