Abstracted out funtionality to replace values at given location for board.