Maine joins states in legalizing online casinos