First draft of the engine.

The script works decently well. Just appears that the XP/hr can
overflow.