complete Board.isExist function