beginning of HARD strategy - updateBoard function