```msg``` is not defined anywhere in here. Also, it should probably be checking the final choice instead of ```arg``` as a whole, since each possible choice might not break any rules. You might also want to add https://github.com/TalkTakesTime/Pokemon-Showdown-Bot/blob/master/parser.js#L245 at some point so it ignores multiple spaces, since they get displayed as a single space on PS and so don't really count as stretching.