Shortened wolf eating rabbit logic