A Method for simulating chiral fermions on the lattice