update 5.6.14 pt2

added various functions to deal with index tracking on the board. Makes
the code look cleaner