Update code to utilize the new helper functions for game state