improve handling of corrupted image files
simplify toImg methods
remove duplicate code, change it so that MagicEvent.getStateId ignores source if source is a MagicItemOnStack, as the item on stack owns the MagicEvent
use stateId for source instead of id
remove targetPicker from getStateId, use better method to get state of ref
remove choice from MagicEvent getStateId, action is sufficiently unique
test MMABC vs MCTS for hourly build