Added some entity management functions to the game state.