Implemented resource controller and game state