Should work

I'm at University so I can't test it, but I hope it works. Rules
themselves might need some updating, but I'm not very creative with it.