Reads grid size and delay from user input