code clearness enhanced in updateBoard() method