some error handling in State next_mave
Merge branch 'master' of https://github.com/gunnarjv/ai2