Added an extra check to set board array to null.