Added framework for spawning and unit cleanup

Still to be fixed:
The time check
Integrate with real Map object