makes update board function. Includes test case.