I think I got it right, but not sure
I'm not gonna look at the spoilers until you tell me if I'm right or not, though! ><
(I made an account here just so I could post here >< So I reeeealllly hope it's right!)
EDIT: OMG D: I gave this code to Heiji and he figured it out in 4 mins, 43 seconds... O.O I don't know HOW he does that!!! took me 2 days to figure it out :<