Utilize the on_frame() function (which you need to implement and write as described above) to analyze each frame. What you’ll have is a game_state_string which can be parsed into a game_state, which you’re familiar with. Parsing the string is no different than what happens in the on_turn function, so there’s nothing new to write there (copy/paste). Once you have a game_state, the logic is all the same, so to gather all the unit locations, just iterate over the game_map and take note of all the game unit locations, if that’s what you want to do with it.