Factored out experience gains into exp_from_action() so they can be adjusted easily.