Implemented the New Game button. Moved some common code used in generating random arrays to a separate function.