Chaos game for IFSs on topological spaces