Fixed after head phase error checking. Added some functional test cases.
Merge branch 'master' of https://github.com/carlhattenfels/deco3801-them