Creating handleClick callback function for tile click events and calling function instead of triggering click events when a tile doesnt have any adjacent mines. Significant improvement in performance of program.