Refactored fixed step game loop into separate unit.