addHook("ThinkFrame", function()
	if gamemap == 12 //Diamond Square Map
		for player in players.iterate
			if player.mo
			and player.mo.valid
				if player.playerbot == true
				or player.racebot == true
					if player.findwaypoint == 50
						if player.kartstuff[k_itemtype] == KITEM_INVINCIBILITY
						or (player.kartstuff[k_invincibilitytimer] >= 5*TICRATE)
						player.cmdusebutton = true
						player.findwaypoint = 51
						player.speedway = true
						player.waypoint = nil
						end
					end
				end
			end
		end
	end
end)