Maine to become eighth state to legalize online casinos