Had wrong type to catch return value of gamemode::per_turn.