Bug solved.
Main game loop finished. Start debugging.