adding initial board index calculations