Copy of Orginal Game Mechanics

I committed the original game mechanics code here.  Let me know if
there is anything missing.