Refine engine order with start screen, reset, etc.

Check collisions at the end of rendering, so the player can see the
collision briefly before level reset.
Fix randomInt generator

Fix with + 1