Game state manager

Wrote some basic inventory/game state management and tested.