Two-dimensional lattice simulation by magnetic bubbles