Move engine frame update after game state update

This should finally fix #225