From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Another tip, make it such that the occupied elements are FALSE and the available elements TRUE (you can change the T/F colors to get the desired visual). This way you can deal with out of bounds more easily, because indexing an element outside the valid range returns false and indicats that you can't go there.