Game loop improvements