Initial commit of the simulation code.  Note this is not the complete version as there are still parts to rework and rewrite.

Signed-off-by: EmperorStarfinder <emperor@secondgalaxy.com>