Change board size and fix diagonal checking