Memory address logic is not working right because of a weird Ruby quirk I don't yet understand.