Implemented terminal states.
Merge branch 'master' of https://github.com/eeckul/tojam2013