Fixed updateBoard