Refactored Gamestate.get_delta()

Split it into several subroutines.
Also, fixed the issue with spawning robots overwriting old ones. (fixes #96)
Added a test for that.