Added asserts for proper game state.

This is to help hunt #889.